package objects;

public class CombatValue {
	int dice = 0;
	int bonus = 0;
	
	public CombatValue(int dice, int bonus) {
		this.dice = dice;
		this.bonus = bonus;
	}
	
	public int calculateValue() {
		int calculatedValue = bonus;
		for (int i = 0; i < dice; i++) {
			calculatedValue += Math.round(Math.random()*5.0) + 1;
		}
		return calculatedValue;
	}
}
